import {buyArr,sellArr,formData,tableTableArr,tableArr} from '~/assets/js/otcNav'

export const state = ()=>({
	isForm:false,
	buyArr,
	sellArr,
	currentData:{
		index:0,
		...buyArr[0],
	},
	formData,
	countries:'11',
	currency:'22',
	pay:'33',
	money:'',
	tableTableArr,
	tableArr,
	colorArr:['#a16c92','#b09472','#61b88e','#5d8cc2','#6d78a8'],
	currentPage:1,
	allPage:100,
	currentModule:'',
	tableToggleIndex:'',
	tableToggleIsToggle:false,
})

export const mutations = {
	onAllBaseCommit(state,data){
	  const {value,name} = data;
	  state[name] = value;
	},
}

export const actions = {
	onAllbaseDispatch(context,data){
	  const {value,name}=data;
	  context.commit('onAllBaseCommit',{value:value,name})
	},
}